package com.ruoqing.core.vo.blog;

import com.ruoqing.core.domain.rqblog.RuoXiRecommendPo;
import com.ruoqing.core.dto.BaseResponse;
import lombok.Data;

import java.util.List;

/**
	* @author YaoXian
	* @title: BlogResponseVo
	* @projectName ruoxi-blog
	* @description: 若兮微服务 - 博客服务 - 响应交换对象
	* @date 2021-02-26 20:39
	*/
@Data
public class BlogResponseVo extends BaseResponse {
		
		private List<RuoXiRecommendPo> list;
		
		public static BlogResponseVo buildBlogResponseVo(String status,List<RuoXiRecommendPo> list){
				BlogResponseVo blogResponseVo = new BlogResponseVo();
				blogResponseVo.setStatus(status);
				blogResponseVo.setList(list);
				return blogResponseVo;
		}
		
		public static BlogResponseVo buildBlogResponseVo(String status){
				BlogResponseVo blogResponseVo = new BlogResponseVo();
				blogResponseVo.setStatus(status);
				return blogResponseVo;
		}
}
